package com.bamboocloud.im.service;

import com.bamboocloud.im.entity.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Auther xuwen
 * @Date 2021/12/13 9:17
 * @Version 1.0
 */
@Component
@FeignClient(value = "SPRINGCLOUD-PROVIDER-DEPT",fallbackFactory = DeptClientServiceFallbackFactory.class)
public interface DeptClientService {
    @RequestMapping("/dept/add")
    public boolean add(Dept dept);
    @RequestMapping("/dept/get/{id}")
    public Dept get(@PathVariable("id") Long id);
    @RequestMapping("/dept/gets")
    public List<Dept> gets();


}
